package com.dxfl;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.time.LocalDateTime;

@RestController
@SpringBootApplication(scanBasePackages = "com.dxfl")
@MapperScan(basePackages = "com.dxfl.mapper")
public class DxflApplication {

    public static void main(String[] args) {
        SpringApplication.run(DxflApplication.class, args);
    }

    @GetMapping("/")
    public String index() {
        return LocalDateTime.now().toString();
    }
}
